
//
//  TestController.swift
//  SwiftJson源码
//
//  Created by wsj on 2018/3/26.
//  Copyright © 2018年 wsj. All rights reserved.
//

import UIKit

class TestController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        var button:UIButton?
        view.backgroundColor = UIColor.white;
       button =  UIButton.wj_mask()
                .wj_frame(CGRect.init(x: 100, y: 100, width: 100, height: 100))
                .wj_btnTitle("返回")
                .wj_btnAction(action: { [weak self] _   in
                    self?.dismiss(animated: true, completion: nil);
                })
                .wj_bgColor(UIColor.blue)
                .wj_addSuperView(self.view) as? UIButton;
       
        
    }
    deinit{
        print("释放了");
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
